import router from './router'
import store from './store'
import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style
router.beforeEach((to, from, next) => {
    NProgress.start();//开始进度条
    next()

})
router.afterEach(() => {
    // finish progress bar
    NProgress.done();//结束
})